package org.bluedream.core.module.sys.entity.org;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.bluedream.comm.base.PageEntity;

/**
 * @ClassName OrgRelation
 * @Description TODO
 * @Author foxsand
 * @Data 2021-07-06 14:06
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_org_relation")
public class OrgRelation extends PageEntity<OrgRelation> {
    private static final long serialVersionUID = -477901191698979706L;

    @NonNull
    protected String orgId;

    @NonNull
    protected String type;

    @NonNull
    protected String entityId;

    public OrgRelation(String orgId, String type, String entityId) {
        this.orgId = orgId;
        this.type = type;
        this.entityId = entityId;
    }
}
